package com.sillyhat.project.org.usermenu.service;

import java.util.List;
import java.util.Map;

import com.sillyhat.project.core.dto.PageDTO;
import com.sillyhat.project.org.usermenu.dto.UserMenuDTO;

public interface UserMenuService {

	/**
	 * <p>Title: add</p>
	 * <p>Description: </p>保存
	 * @param obj
	 * @author XUSHIKUAN
	 * @date 2017-04-14
	 */
	public UserMenuDTO addUserMenu(UserMenuDTO dto);
	
	/**
	 * <p>Title: update</p>
	 * <p>Description: </p>修改
	 * @param obj
	 * @author XUSHIKUAN
	 * @date 2017-04-14
	 */
	public UserMenuDTO updateUserMenu(UserMenuDTO dto);
	
	/**
	 * <p>Title: deleteUserMenuByPrimaryKey</p>
	 * <p>Description: </p>根据主键删除
	 * @param id
	 * @author XUSHIKUAN
	 * @date 2017-04-14
	 */
	public boolean deleteUserMenuByPrimaryKey(long id);
	
	/**
	 * <p>Title: selectUserMenuByPrimaryKey</p>
	 * <p>Description: </p>根据主键查询
	 * @param id
	 * @author XUSHIKUAN
	 * @date 2017-04-14
	 */
	public UserMenuDTO selectUserMenuByPrimaryKey(long id);
	
	/**
	 * <p>Title: queryUserMenuByPage</p>
	 * <p>Description: </p>分页查询
	 * @param page
	 * @return	PageDTO：分页查询实体类
	 * @author XUSHIKUAN
	 * @date 2017-04-14
	 */
	public PageDTO queryUserMenuByPage(PageDTO page);


	/**
	 * <p>Title: getUserMenuCountByParams</p>
	 * <p>Description: </p>查询总数
	 * @param param 查询条件
	 * @author XUSHIKUAN
	 * @date 2017-04-14
	 */
    public int getUserMenuCountByParams(Map<String, Object> params);

	/**
	 * <p>Title: queryUserMenuAll</p>
	 * <p>Description: </p>查询所有
	 * @author XUSHIKUAN
	 * @date 2017-04-14
	 */
	public List<UserMenuDTO> queryUserMenuAll();

}
